package com.wuliu.system.domain.dto.app;

import com.wuliu.common.annotation.NotLessThanZero;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author realue
 * @version 1.0
 * @date 2023-11-09 16:58
 */
@Data
@ApiModel(description = "app端计算运费实体类")
public class CalcOrderFeeDto {
    @NotBlank(message = "发件省份不能为空")
    @ApiModelProperty(value = "发件省份")
    private String srcProvince;

    @NotBlank(message = "发件城市不能为空")
    @ApiModelProperty(value = "发件城市")
    private String srcCity;

    @NotBlank(message = "收件省份不能为空")
    @ApiModelProperty(value = "收件省份")
    private String dstProvince;

    @NotBlank(message = "收件城市不能为空")
    @ApiModelProperty(value = "收件城市")
    private String dstCity;

    @NotLessThanZero(message = "重量必须大于0")
    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "件数")
    private Integer cargoCnt;

    @ApiModelProperty(value = "快递类型 1.标准快递")
    private Integer cargoType;
}
